"""assessApi URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/4.0/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""

# 定义接口
from django.contrib import admin
from django.urls import path
from web_api.views import reset_evaluation, add_article, add_index, check_index, credit_risk_input, create_risk_evlation, page_query_for_evaluation, query_for_evaluation

urlpatterns = [
    path('admin/', admin.site.urls),
    path('articles/', add_article),
    path('index/', add_index),
    path('check_index/', check_index),
    # 正式接口
    path('credit_risk_input/', credit_risk_input),
    path('create_risk_evlation/', create_risk_evlation),
    path('page_query_for_evaluation/', page_query_for_evaluation),
    path('query_for_evaluation/', query_for_evaluation),
    path('reset_evaluation/', reset_evaluation),
    # path('articles/<int:art_id>', modify_article),
]
